<html>
<head>
<style>
a{
position:absolute;
left:200px;
top:126px;
color:#69c;
}
a:hover{
color:#f00;
}
div{
padding: 10px; font:12px 'lucida sans'; line-height:1.5;float:left;width:250px;height:130px; border:1px solid #ccc;margin:0 12px 12px 0;
position:relative;
}
</style>
<script type="text/javascript">
function link()
{
    var yr = document.getElementById('yr').value;
    var state = document.getElementById('state').value;
    document.location = '<?php echo Blib::baseUrl(); ?>' + yr + '/' + state;

}
</script>
</head>
<body>
<h3 style="clear: both;">
Crime DB:
<select id="yr">
<option value="<?php echo date('Y') ?>" selected="selected">
<?php echo date('Y') ?>
<?php
$curYr = date('Y');
for ($y = $curYr - 1; $y >= 2006; $y --) :
?>
<option value="<?php echo $y ?>">
<?php echo $y ?>
</option>
<?php
endfor;
?>
</select>

<select id="state">
    <option value="nsw">nsw</option>
    <option value="vic">vic</option>
    <option value="qld">qld</option>
    <option value="nt">nt</option>
    <option value="wa">wa</option>
    <option value="tas">tas</option>
</select>

<input type="button" value="go" onclick="link();" />
</h3>
<?php
if (!empty($pcs)) {
    foreach ($pcs as $pc) {
        include 'pc.phtml';
    }
}
?>
</body>
</html>